package ch03;

class OperatorEx06 {
	public static void main(String[] args) {
		byte a = 10;
		// byte result = ~a; // result type is int.
		byte result = (byte)~a;
		System.out.println(a+", "+result); // 10, -11
		
		long b = 10;
		long result2 = ~b;
		System.out.println(b+", "+result2); // 10, -11
	}
}